package com.wan.base

import android.app.Application
import android.content.Context
import com.squareup.leakcanary.LeakCanary
import java.util.concurrent.Executors

/**
 * 问题:
 * 1: 内存耗费过多,需优化
 * 2: 界面效果需要调整
 */
class WanApp : Application() {

    override fun onCreate() {
        super.onCreate()
        sContext = applicationContext
        if (!LeakCanary.isInAnalyzerProcess(this)) {
            LeakCanary.install(this)
        }
    }


    companion object {
        lateinit var sContext: Context

        //线程池
        val threadPool = Executors.newFixedThreadPool(6)!!

    }


}